#include "Sql_list.h"

Elenemt_data Stu_data[50] =
    {
        {.name = "刘备", .sex = "男", .sco = 60, .age = 18, .id = 1},
        {.name = "关羽", .sex = "男", .sco = 60, .age = 18, .id = 2},
        {.name = "张飞", .sex = "女", .sco = 60, .age = 18, .id = 3},
        {.name = "诸葛", .sex = "男", .sco = 60, .age = 18, .id = 4},
        {.name = "赵云", .sex = "男", .sco = 60, .age = 18, .id = 5},
        {.name = "马超", .sex = "男", .sco = 60, .age = 18, .id = 6},
        {.name = "祝融", .sex = "女", .sco = 60, .age = 18, .id = 7},
        {.name = "小乔", .sex = "女", .sco = 60, .age = 18, .id = 8},
        {.name = "大乔", .sex = "女", .sco = 60, .age = 18, .id = 9},
        {.name = "貂蝉", .sex = "女", .sco = 60, .age = 18, .id = 10}};

int main(void)
{

    Sql_list *L = Init_Sql_List(30);
    // 添加元素
    for (int i = 0; i < 10; i++)
    {
        tail_insert_tail(L, Stu_data[i]); 
    }
    // 遍历元素
    printf_Sql_List(L);
    printf("==============扩容==========================\n");
    Expand_Sql_List(L, 5);
    printf_Sql_List(L);

    Destroy_Sql_List(&L);
}
